//
//  QSUserInterface.h
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/3/23.
//  Copyright © 2020 DingC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ResponseMessage.h"
#import "QSNeedUpdateVersionModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface QSUserInterface : NSObject

/**
 *@brief 判断当前版本是否需要更新
 * @param appFlag     类型 2 ios 1安卓
 *@param version  版本号
 */
+ (void)getNeedUpdateWithAppFlag:(NSString *)appFlag
                         Version:(NSString *)version
                    andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSNeedUpdateVersionModel *result))block;
/**
*@brief 判断当前手机号是否存在
* @param phone     手机号
*/
+ (void)checkPhoneWithPhone:(NSString *)phone
                   andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

/**
*@brief 用户登录注册
* @param phone     手机号
 */
+ (void)sendCodeWithPhone:(NSString *)phone
                    andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

/**
 * @brief 用户登录注册
 *
 * @param phone     手机号
 * @param phoneCode 验证码
 */
+ (void)userLoginWithphone:(NSString *)phone
                   phoneCode:(NSString *)phoneCode
                    andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSUserModel *user))block;

/**
* @brief 判断是否是驻企服务员
*/
+ (void)getUserisEnterprisePersonandBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

/**
 * @brief 更改用户头像
 */
+ (void)changeUserImageWithImageUrl:(NSString *)imageUrl
                           AndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

/**
*@brief 退出登录状态
*/
+ (void)logoutWithBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

/**
*@brief 获取绑定企业数量
*/
+ (void)getBundleCompanyNumWithEpAllCompany:(NSString *)epAllCompany
                                   AndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

@end

NS_ASSUME_NONNULL_END
